package Dao;

import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;

public class DatabaseUtil {
	static EntityManagerFactory emf = null;
	
	private DatabaseUtil() {
	}
	
	public static EntityManagerFactory criarEMF(){
		if (emf == null){
			emf = Persistence.createEntityManagerFactory("jpa01");
		}
		return emf;
	}

}
